package cc.surui.ui.fl 
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.geom.Point;
	
	/**
	 * ...
	 * @author Surui
	 */
	public class UIBird extends Sprite 
	{
		private var _mc:MovieClip;
		private var _light:Boolean = false;
		public function UIBird() 
		{
		}
		
		public function _super( mc:MovieClip ):void {
			this._mc = mc;
			this.addChild(_mc);
		}
		
		public function get light():Boolean 
		{
			return _light;
		}
		
		public function set light(value:Boolean):void 
		{
			_light = value;
			if ( value ) {
				_mc.gotoAndStop(2);
			} else {
				_mc.gotoAndStop(1);
			}
		}
		
		public function set position( point:Point ):void {
			this.x = point.x;
			this.y = point.y;
		}
	}

}